package com.ruoyi.boss.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.boss.mapper.TDispatchedMapper;
import com.ruoyi.boss.domain.TDispatched;
import com.ruoyi.boss.service.ITDispatchedService;

/**
 * 待派单Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-17
 */
@Service
public class TDispatchedServiceImpl implements ITDispatchedService 
{
    @Autowired
    private TDispatchedMapper tDispatchedMapper;

    /**
     * 查询待派单
     * 
     * @param dispatchedId 待派单主键
     * @return 待派单
     */
    @Override
    public TDispatched selectTDispatchedByDispatchedId(Long dispatchedId)
    {
        return tDispatchedMapper.selectTDispatchedByDispatchedId(dispatchedId);
    }

    /**
     * 查询待派单列表
     * 
     * @param tDispatched 待派单
     * @return 待派单
     */
    @Override
    public List<TDispatched> selectTDispatchedList(TDispatched tDispatched)
    {
        return tDispatchedMapper.selectTDispatchedList(tDispatched);
    }

    /**
     * 新增待派单
     * 
     * @param tDispatched 待派单
     * @return 结果
     */
    @Override
    public int insertTDispatched(TDispatched tDispatched)
    {
        return tDispatchedMapper.insertTDispatched(tDispatched);
    }

    /**
     * 修改待派单
     * 
     * @param tDispatched 待派单
     * @return 结果
     */
    @Override
    public int updateTDispatched(TDispatched tDispatched)
    {
        return tDispatchedMapper.updateTDispatched(tDispatched);
    }

    /**
     * 批量删除待派单
     * 
     * @param dispatchedIds 需要删除的待派单主键
     * @return 结果
     */
    @Override
    public int deleteTDispatchedByDispatchedIds(Long[] dispatchedIds)
    {
        return tDispatchedMapper.deleteTDispatchedByDispatchedIds(dispatchedIds);
    }

    /**
     * 删除待派单信息
     * 
     * @param dispatchedId 待派单主键
     * @return 结果
     */
    @Override
    public int deleteTDispatchedByDispatchedId(Long dispatchedId)
    {
        return tDispatchedMapper.deleteTDispatchedByDispatchedId(dispatchedId);
    }
}
